exports.requestByHeader = function(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "GET", o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {
        "content-type": "application/x-www-form-urlencoded",
        Authorization: wx.getStorageSync("authorization")
    };
    return new Promise(function(a, r) {
        wx.request({
            url: getApp().data.mainURL + e,
            data: t,
            method: n,
            header: o,
            dataType: "json",
            success: a,
            fail: r
        });
    });
}, exports.requestNoHeader = function(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "GET", o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {
        "content-type": "application/x-www-form-urlencoded"
    };
    return new Promise(function(a, r) {
        wx.request({
            url: getApp().data.mainURL + e,
            data: t,
            method: n,
            header: o,
            dataType: "json",
            success: a,
            fail: r
        });
    });
}, exports.requestForHeader = function(e, t) {
    var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "GET", o = arguments.length > 3 ? arguments[3] : void 0;
    return new Promise(function(a, r) {
        wx.request({
            url: getApp().data.mainURL + e,
            data: t,
            method: n,
            header: {
                "content-type": "application/x-www-form-urlencoded",
                Authorization: o
            },
            success: a,
            fail: r
        });
    });
};